CREATE EXTERNAL TABLE IF NOT EXISTS jms_ods.spmi_tof_refund_global_refund_bill(
id                                                 bigint                         COMMENT '主键',
refund_network_id                                  bigint                         COMMENT '退件网点ID',
business_type                                      smallint                       COMMENT '退件业务类型(1:退件 2:转寄)',
waybill_no                                         String                         COMMENT '运单号',
scan_time                                          timestamp                      COMMENT '扫描时间',
create_time                                        timestamp                      COMMENT '创建时间'
)
COMMENT '退件消息全局表'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/jms_ods.db/external/spmi_tof_refund_global_refund_bill'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
)